﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using PaydSystem.Cls;
using PaydSystem.DataAccess;

namespace PaydSystem.Business
{
    public class PaydUserBiz
    {
        PaydUserDa conData = new PaydUserDa();
        public List<PaydUserCls> GetListDataBiz(string sorting = "")
        {
            return conData.GetListDataDa(sorting);
        }

        public PaydUserCls GetRecDataByMemberIdBiz(string memberId)
        {
            return conData.GetRecDataDa(memberId, "", "","");
        }

        public PaydUserCls GetRecDataByIdCardBiz(string idCard)
        {
            return conData.GetRecDataDa("",idCard,"","");
        }

        public PaydUserCls GetRecDataByUserIdBiz(string userId)
        {
            return conData.GetRecDataDa("","",userId,"");
        }

        public PaydUserCls GetRecDataByEmailPrimaryBiz(string emailPrimary)
        {
            return conData.GetRecDataDa("","","",emailPrimary);
        }

        public int PaydCheckUserBiz(string idCard)
        {
            return conData.PaydCheckUserDa(idCard);
        }

        public int CheckUserLoginBiz(string username, string password)
        {
            return conData.CheckUserLoginDa(username, password);
        }

        public int ActivateUserBiz(string memberId)
        {
            return conData.ActivateUserDa(memberId);
        }

        public int SavePaydUserBiz(PaydUserCls paydUserObj)
        {
            return conData.SavePaydUserDa(paydUserObj);
        }

        public int SendForgetPwdBiz(string email)
        {
            return conData.SendForgetPwdDa(email);
        }

        public int SavePwdForForgetBiz(string memberId, string password)
        {
            return conData.SavePwdForForgetDa(memberId, password);
        }

        public int ChkExpireChangePwdBiz(string memberId)
        {
            return conData.ChkExpireChangePwdDa(memberId);
        }
    }
}